import request from "../axios";

export default {
	// 获取资料列表
	getMaterialList(params) {
		return request({
			method: "POST",
			url: '/material/getMaterialList',
			data: params
		})
	},
	// 获取资料详情
	getMaterial(params){
		return request({
			method: "POST",
			url: '/material/getMaterial',
			data: params
		})
	},
	// 添加资料
	addMaterial(params){
		return request({
			method: "POST",
			url: '/material/addMaterial',
			data: params
		})
	},
	// 删除资料
	deleteMaterial(params){
		return request({
			method: "POST",
			url: '/material/deleteMaterial',
			data: params
		})
	},
	// 获取评论
	getComment(params) {
		return request({
			method: "POST",
			url: '/comment/getComment',
			data: params
		})
	},
	// 获取学习记录
	getLearnRecordList(params) {
		return request({
			method: "POST",
			url: '/learnRecord/getLearnRecordList',
			data: params
		})
	},
}